#include "SAKLibrary.h"
#include "SAKMainWindow.hh"
#include "SAKApplication.hh"

QWidget *SAKLibrary::getSAKMainWindow()
{
    SAKApplication* sakApplication = new SAKApplication;
    SAKApplication::instance = sakApplication;
    SAKMainWindow* mainWindow = new SAKMainWindow(sakApplication->settings(), sakApplication->sqlDatabase());
    sakApplication->setParent(mainWindow);
    return mainWindow;
}
